using System;
using System.Windows.Markup;

namespace ChessKit.Common
{
  public class RowExtension : MarkupExtension
  {
    public int Y { get; set; }

    public RowExtension()
    {
    }

    public RowExtension(int y)
    {
      Y = y;
    }

    public override object ProvideValue(IServiceProvider serviceProvider)
    {
      return BoardLocation.Row(Y);
    }
  }
}